package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yhk
 * @since 2024-10-06
 */
@TableName("sys_token_cache")
public class SysTokenCache implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String token;

    private LocalDateTime loginDate;

    private LocalDateTime notBeforeDate;

    private LocalDateTime expirationDate;

    private Integer refreshCount;

    private LocalDateTime maxExpirationDate;

    private LocalDateTime oldOperationDate;

    private String equipmentIp;

    private String username;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public LocalDateTime getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(LocalDateTime loginDate) {
        this.loginDate = loginDate;
    }

    public LocalDateTime getNotBeforeDate() {
        return notBeforeDate;
    }

    public void setNotBeforeDate(LocalDateTime notBeforeDate) {
        this.notBeforeDate = notBeforeDate;
    }

    public LocalDateTime getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(LocalDateTime expirationDate) {
        this.expirationDate = expirationDate;
    }

    public Integer getRefreshCount() {
        return refreshCount;
    }

    public void setRefreshCount(Integer refreshCount) {
        this.refreshCount = refreshCount;
    }

    public LocalDateTime getMaxExpirationDate() {
        return maxExpirationDate;
    }

    public void setMaxExpirationDate(LocalDateTime maxExpirationDate) {
        this.maxExpirationDate = maxExpirationDate;
    }

    public LocalDateTime getOldOperationDate() {
        return oldOperationDate;
    }

    public void setOldOperationDate(LocalDateTime oldOperationDate) {
        this.oldOperationDate = oldOperationDate;
    }

    public String getEquipmentIp() {
        return equipmentIp;
    }

    public void setEquipmentIp(String equipmentIp) {
        this.equipmentIp = equipmentIp;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "SysTokenCache{" +
        "id=" + id +
        ", token=" + token +
        ", loginDate=" + loginDate +
        ", notBeforeDate=" + notBeforeDate +
        ", expirationDate=" + expirationDate +
        ", refreshCount=" + refreshCount +
        ", maxExpirationDate=" + maxExpirationDate +
        ", oldOperationDate=" + oldOperationDate +
        ", equipmentIp=" + equipmentIp +
        ", username=" + username +
        "}";
    }
}
